package com.nbsaas.boot.config.rest.convert;

import com.nbsaas.boot.config.data.entity.UserConfig;
import com.nbsaas.boot.config.api.domain.simple.UserConfigSimple;

import com.nbsaas.boot.rest.api.Converter;

/**
* 用户配置-列表对象转换器
*/

public class UserConfigSimpleConvert implements Converter<UserConfigSimple, UserConfig> {




@Override
public UserConfigSimple convert(UserConfig source) {
    UserConfigSimple result = new UserConfigSimple();

                result.setConfigData(source.getConfigData());
                result.setClassName(source.getClassName());
                result.setId(source.getId());
                result.setUserId(source.getUserId());
                result.setAddDate(source.getAddDate());
                result.setLastDate(source.getLastDate());


    return result;
}

}